module.exports = {
    title: 'Discuz! Q 管理后台使用手册',
    base: '/manual-admin/',

    themeConfig: {
        lastUpdated: '最后更新',
        docsRepo: 'comsenz/docs',
        docsDir: 'manual-admin',
        editLinks: false,
        nav: [
            { text: '官网', link: 'https://discuz.chat' },
        ],
        sidebar: {
            '/': [
                {
                    title: '目录',
                    collapsable: false,
                    children: [
                        '/1',
                        '/2',
                        '/3',
                        '/4',
                        '/5',
                    ]
                },
                {
                    title: '附录',
                    collapsable: false,
                    children: [
                        '/related_docs'
                    ]
                }
            ]
        }
    },
    head: [
		[
			'script',
			{},
			`
      document.addEventListener("DOMContentLoaded", function(){
        console.log("ready");
        var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
        if (window.location.hash && isChrome) {
            setTimeout(function () {
                var hash = window.location.hash;
                var element_to_scroll_to = document.getElementById(decodeURI(hash.substr(1)));
                element_to_scroll_to.scrollIntoView();
            }, 300);
        }
      });
`,
		],
	],
};
